// Copyright 2018 The Flutter team. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: Text('flutter demo'),
        ),
        body: HomeContent(),
      ),
      theme: ThemeData(primarySwatch: Colors.yellow),
    );
  }
}

class HomeContent extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    // return IconContainer(Icons.search, color: Colors.blue);
    return Column(
      // mainAxisAlignment: MainAxisAlignment.spaceEvenly,
      // crossAxisAlignment: CrossAxisAlignment.end,
      children: <Widget>[
        Row(children: <Widget>[
          Expanded(
            child: Container(
              height: 200,
              color: Colors.black,
              child: Text("你好Flutter"),
            ),
          )
        ]),
        SizedBox(
          height: 10,
        ),
        Row(
          children: <Widget>[
            Expanded(
                flex: 2,
                child: Container(
                  height: 180,
                  child: Image.network(
                    "https://pic.netbian.com/uploads/allimg/220406/001517-1649175317d3b0.jpg",
                    fit: BoxFit.cover,
                  ),
                )),
            SizedBox(
              width: 10,
            ),
            Expanded(
                flex: 1,
                child: Container(
                  height: 180,
                  child: ListView(children: <Widget>[
                    Container(
                        height: 85,
                        child: Image.network(
                          "https://pic.netbian.com/uploads/allimg/220406/001517-1649175317d3b0.jpg",
                          fit: BoxFit.cover,
                        )),
                    SizedBox(
                      height: 10,
                    ),
                    Container(
                        height: 85,
                        child: Image.network(
                          "https://pic.netbian.com/uploads/allimg/220406/001517-1649175317d3b0.jpg",
                          fit: BoxFit.cover,
                        )),
                  ]),
                )),
          ],
        )
      ],
    );
  }
}
